package 力扣日常刷题.木22一月.第07天0115;

/**
 * @author 帅小伙
 * @date 2022/1/15
 * @description
 */
public class Demo01每日一题简单计算力扣银行的钱 {

    public int totalMoney(int n) {
        int ans = 0;
        int start = 0;
        for (int i =1; i < n; i++) {
            start = i/7;
            ans +=(i%7+start);
        }
        return ans+n;
    }
}
